<nav>
    <ul class="pager" style="margin-top:3px;margin-bottom:3px;">
        {% if paginator.previous_page %} {% if paginator.previous_page == 1 %}
        <li><a href="{{site.production_url}}" class="previous">上一页</a></li>
        {% else %}
        <li><a href="{{site.production_url}}/blog/page{{ paginator.previous_page }}/" class="previous">上一页</a></li>
        {% endif %} {% else %}
        <li><span class="previous">上一页</span></li>
        {% endif %}
        <li><span class="page_number">当前页: {{ paginator.page }}/{{ paginator.total_pages }}</span></li>
        {% if paginator.next_page %}
        <li><a href="{{site.production_url}}/blog/page{{ paginator.next_page }}/" class="next">下一页</a></li>
        {% else %}
        <li><span class="next">下一页</span></li>
        {% endif %}
    </ul>
</nav>